package com.zhentao.fegin;



import com.zhentao.schedule.apis.article.ArticleClientApi;
import com.zhentao.service.ArticleService;
import com.zhentao.schedule.file.article.dto.ArticleDto;


import com.zhentao.schedule.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Date 2024/3/1 21:22
 * @Author xdm
 **/
@RestController
@Component
public class ArticleClient implements ArticleClientApi {
    @Autowired
    private ArticleService articleService;
    @Override
    @PostMapping("/api/v1/article/save")
    public ResponseResult saveArticle(ArticleDto dto) {
        return articleService.saveArticle(dto);
    }

}
